package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.StrategyCommend;
import cn.wolfcode.luowowo.article.query.StrategyCommendQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCommendService {
    void deleteByPrimaryKey(Long id);

    void insert(StrategyCommend record);

    StrategyCommend selectByPrimaryKey(Long id);

    List<StrategyCommend> selectAll();

    void updateByPrimaryKey(StrategyCommend record);

    PageInfo query(StrategyCommendQuery qo);

    /**
     * 攻略前5推荐
     * @return
     */
    List<StrategyCommend> getCommendTop5();
}
